package com.nfcprogram.handover.resolver;

import java.util.HashMap;
import java.util.Map;
import com.nfcprogram.handover.resolver.enums.Requirement;


public class Requirements {
	
//	#Largura de banda em kbps
//	mininumBandwidth=100
//	#Estrategia de vida de bateria: economy, moderate, relax
//	baterylifeStrategy=economy
//	#Preferencia do usuario: Blu, WiFi e NFC
//	userPreference=NFC
	
	
	
	private Map<Requirement, String> requirements;
	

	public Requirements() {
		requirements = new HashMap<Requirement, String>();
	}
	
	public void addRequirement(Requirement req, String value){
		requirements.put(req, value);
	}
	
    public String getRequirement(Requirement requirement)
    {
    	return requirements.get(requirement);
    }
    
    @Override
    public String toString() {
    
    	try {
			return "@Requirements:"+requirements.toString();
		} catch (Exception e) {			
			e.printStackTrace();
		}
		return null;
    }

}
